<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:insert="common.html"></div>
<form class="form-horizontal" role="form" id="user_add_form">
  <div class="form-group">
    <label for="pname" class="col-sm-2 control-label">用户名</label>
    <div class="col-sm-5">
      <input type="text" class="form-control" id="pname" name="pname" placeholder="请输入用户名">
    </div>
  </div>
  <div class="form-group">
    <label for="pname" class="col-sm-2 control-label">角色</label>
    <div class="col-sm-5" th:each="role : ${list}">
        <input type="checkbox" name="roleId" th:value="${role.roleId}">[[${role.roleName}]]
    </div>
  </div>
</form>
</body>
</html>